package cn.jilian.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.SecondaryTable;
import javax.persistence.SecondaryTables;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.jilian.entity.User;

@Entity
@DynamicInsert
@DynamicUpdate
@SecondaryTables({
	@SecondaryTable(name="dt_driver",pkJoinColumns=@PrimaryKeyJoinColumn(name="fid"))
})
@DiscriminatorValue(User.DRIVER_META)
public class Driver extends User{

	public Driver() {
	}
	
	
	@Column(name="id_no",table="dt_driver")
	private String idNo;
	
	@Column(name="driver_license_no",table="dt_driver")
	private String driverLicenseNo;
	
	@Column(name="driving_license_no",table="dt_driver")
	private String drivingLicenseNo;
	
	@Column(name="flapper_code",table="dt_driver")
	private String flapperCode;
	/**
	 * 1平板、2高栏
	 * */
	@Column(name="vehicle_type",table="dt_driver")
	private Integer vehicleType;
	
	@Column(name="vehicle_length",table="dt_driver")
	private Double vehicleLength;
	
	@Column(name="vehicle_width",table="dt_driver")
	private Double vehicleWidth;
	
	@Column(name="acct_bank",table="dt_driver")
	private String acctBank;
	
	@Column(name="acct_no",table="dt_driver")
	private String acctNo;
	
	public String getDriverLicenseNo() {
		return driverLicenseNo;
	}
	public void setDriverLicenseNo(String driverLicenseNo) {
		this.driverLicenseNo = driverLicenseNo;
	}
	public String getDrivingLicenseNo() {
		return drivingLicenseNo;
	}
	public void setDrivingLicenseNo(String drivingLicenseNo) {
		this.drivingLicenseNo = drivingLicenseNo;
	}
	public String getFlapperCode() {
		return flapperCode;
	}
	public void setFlapperCode(String flapperCode) {
		this.flapperCode = flapperCode;
	}
	public Integer getVehicleType() {
		return vehicleType;
	}
	public void setVehicleType(Integer vehicleType) {
		this.vehicleType = vehicleType;
	}
	public Double getVehicleLength() {
		return vehicleLength;
	}
	public void setVehicleLength(Double vehicleLength) {
		this.vehicleLength = vehicleLength;
	}
	public Double getVehicleWidth() {
		return vehicleWidth;
	}
	public void setVehicleWidth(Double vehicleWidth) {
		this.vehicleWidth = vehicleWidth;
	}
	public String getIdNo() {
		return idNo;
	}
	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
	public String getAcctBank() {
		return acctBank;
	}
	public void setAcctBank(String acctBank) {
		this.acctBank = acctBank;
	}
	public String getAcctNo() {
		return acctNo;
	}
	public void setAcctNo(String acctNo) {
		this.acctNo = acctNo;
	}
	
	
}
